package com.hdu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.hdu.enums.RuanLabel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 学校专业实体类
 * </p>
 *
 * @author xiaobai
 * @since 2023-11-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "school_major", autoResultMap = true)
public class SchoolMajor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学校id
     */
    private Integer schoolId;

    /**
     * 专业id
     */
    private Integer majorId;

    /**
     * 是否是国家特色专业 1是 0否
     */
    private Integer isNation;

    /**
     * 是否是省级特色专业 1是 0否
     */
    private Integer isProvince;

    /**
     * 软科排名
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private RuanLabel ruan;
}
